package demo.ssm.service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import demo.ssm.pojo.po.Department;
import demo.ssm.pojo.vo.DepartmentCustom;
import demo.ssm.pojo.vo.DepartmentQueryVo;

public interface DepartmentService {
	// 查询部门总数
	public int findDepartmentCount() throws Exception;

	// 查询所有部门信息
	public List<DepartmentCustom> findDepartmentList(
			DepartmentQueryVo departmentQueryVo) throws Exception;
	//准备数据，部门名称
	public List<DepartmentCustom> findalldname() throws Exception;
	//添加部门信息
	public void insertDepartment(DepartmentCustom departmentCustom) throws Exception;
	//删除部门
	public void deleteDepartment(String id) throws Exception;
	//根据id查询部门信息
	public Department selectDepartmentById(String id) throws Exception;
	//添加部门信息
	public void updateDepartment(DepartmentCustom departmentCustom,String id) throws Exception;
}
